package priv.pront.code.robot.roboCom_uni;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-06-29 15:18
 */
public class P4057_晨跑 {

    static StreamTokenizer st = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
    static long a, b, c;

    static long ans;

    public static void main(String[] args) throws IOException {
        st.nextToken();
        a = (long) st.nval;
        st.nextToken();
        b = (long) st.nval;
        st.nextToken();
        c = (long) st.nval;

        ans = a * b / gcd(a, b);
        ans = ans * c/ gcd(ans, c);
        System.out.println(ans);

    }

    private static long gcd(long a, long b){
        if (a % b == 0) {
            return b;
        }
        return gcd(b, a % b);
    }
}
